function title_to_slug(form_name, original_field, slug_field)
{

    var Title = document.forms[form_name].elements[original_field].value
    var slug_array = title.split(" ")
    var slug = slug_array.join("_")

    if (Title != "")
    {
        document.forms[form_name].elements[slug_field].value = slug.toLowerCase()
    }
    else
    {
        document.forms[form_name].elements[slug_field].value = 'Change Me Please'
    }

}

